package com.company.modules.project.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 公司
 * @TableName company
 */
public class Company implements Serializable {
    /**
     * 公司ID
     */
    private Integer id;

    /**
     * 公司名称
     */
    private String name;

    /**
     * 公司城市
     */
    private String city;

    /**
     * 公司地址
     */
    private String address;

    /**
     * 公司电话
     */
    private String phone;

    /**
     * 公司邮箱
     */
    private String mail;

    /**
     * 公司行业
     */
    private String industry;

    /**
     * 状态;1表示启用，2表示禁用
     */
    private Integer status;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    /**
     * 公司ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 公司ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 公司名称
     */
    public String getName() {
        return name;
    }

    /**
     * 公司名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 公司城市
     */
    public String getCity() {
        return city;
    }

    /**
     * 公司城市
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * 公司地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 公司地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 公司电话
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 公司电话
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 公司邮箱
     */
    public String getMail() {
        return mail;
    }

    /**
     * 公司邮箱
     */
    public void setMail(String mail) {
        this.mail = mail;
    }

    /**
     * 公司行业
     */
    public String getIndustry() {
        return industry;
    }

    /**
     * 公司行业
     */
    public void setIndustry(String industry) {
        this.industry = industry;
    }

    /**
     * 状态;1表示启用，2表示禁用
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 状态;1表示启用，2表示禁用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /**
     * 备注
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Company other = (Company) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getMail() == null ? other.getMail() == null : this.getMail().equals(other.getMail()))
            && (this.getIndustry() == null ? other.getIndustry() == null : this.getIndustry().equals(other.getIndustry()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getMail() == null) ? 0 : getMail().hashCode());
        result = prime * result + ((getIndustry() == null) ? 0 : getIndustry().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", city=").append(city);
        sb.append(", address=").append(address);
        sb.append(", phone=").append(phone);
        sb.append(", mail=").append(mail);
        sb.append(", industry=").append(industry);
        sb.append(", status=").append(status);
        sb.append(", remarks=").append(remarks);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
